package practice;


public class AbstractEmployeeTest {
	public static void main(String[] args) {
		AbstractEmployee[] emps=new AbstractEmployee[2];
		emps[0]=new AbstractManager("yyfei", 1001, new AbstractMyDate(1992,10,15), 8500);
		emps[1]=new AbtractHourEmployee("chenjie", 1002, new AbstractMyDate(1993,2,15), 300, 12);
		
		for (int i = 0; i < emps.length; i++) {
			System.out.println(emps[i]);
			double salary=emps[i].earnings();
			System.out.println(emps[i].getName()+"的工资为："+salary);
		}
		
	}
}
